.class public Lorg/zeam/ScreenIndicator;
.super Landroid/view/ViewGroup;
.source "ScreenIndicator.java"

# interfaces
.implements Landroid/view/animation/Animation$AnimationListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/zeam/ScreenIndicator$SliderIndicator;
    }
.end annotation


# static fields
.field private static final DEFAULT_COLOR:I = -0x66000001

.field public static final TYPE_DOTS:I = 0x1

.field public static final TYPE_SLIDER_BOTTOM:I = 0x3

.field public static final TYPE_SLIDER_TOP:I = 0x2


# instance fields
.field private mAnimation:Landroid/view/animation/Animation;

.field private mAutoHide:Ljava/lang/Runnable;

.field private mColor:I

.field private mCurrent:I

.field private mHandler:Landroid/os/Handler;

.field private mIndicator:Landroid/view/View;

.field private mItems:I

.field private mType:I

.field private mVisibleTime:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    .line 20
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    .line 29
    const/4 v0, 0x1

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mType:I

    .line 30
    const/4 v0, 0x5

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    .line 32
    const/16 v0, 0x12c

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    .line 33
    const v0, -0x66000001

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mColor:I

    .line 198
    new-instance v0, Lorg/zeam/ScreenIndicator$1;

    invoke-direct {v0, p0}, Lorg/zeam/ScreenIndicator$1;-><init>(Lorg/zeam/ScreenIndicator;)V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    .line 37
    invoke-direct {p0, p1}, Lorg/zeam/ScreenIndicator;->initIndicator(Landroid/content/Context;)V

    .line 38
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 41
    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 20
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    .line 29
    const/4 v0, 0x1

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mType:I

    .line 30
    const/4 v0, 0x5

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    .line 32
    const/16 v0, 0x12c

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    .line 33
    const v0, -0x66000001

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mColor:I

    .line 198
    new-instance v0, Lorg/zeam/ScreenIndicator$1;

    invoke-direct {v0, p0}, Lorg/zeam/ScreenIndicator$1;-><init>(Lorg/zeam/ScreenIndicator;)V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    .line 42
    invoke-direct {p0, p1}, Lorg/zeam/ScreenIndicator;->initIndicator(Landroid/content/Context;)V

    .line 43
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 46
    invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 20
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    .line 29
    const/4 v0, 0x1

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mType:I

    .line 30
    const/4 v0, 0x5

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    .line 32
    const/16 v0, 0x12c

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    .line 33
    const v0, -0x66000001

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mColor:I

    .line 198
    new-instance v0, Lorg/zeam/ScreenIndicator$1;

    invoke-direct {v0, p0}, Lorg/zeam/ScreenIndicator$1;-><init>(Lorg/zeam/ScreenIndicator;)V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    .line 47
    invoke-direct {p0, p1}, Lorg/zeam/ScreenIndicator;->initIndicator(Landroid/content/Context;)V

    .line 48
    return-void
.end method

.method static synthetic access$0(Lorg/zeam/ScreenIndicator;)Landroid/view/animation/Animation;
    .locals 1
    .parameter

    .prologue
    .line 21
    iget-object v0, p0, Lorg/zeam/ScreenIndicator;->mAnimation:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$1(Lorg/zeam/ScreenIndicator;Landroid/view/animation/Animation;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 21
    iput-object p1, p0, Lorg/zeam/ScreenIndicator;->mAnimation:Landroid/view/animation/Animation;

    return-void
.end method

.method static synthetic access$2(Lorg/zeam/ScreenIndicator;)I
    .locals 1
    .parameter

    .prologue
    .line 33
    iget v0, p0, Lorg/zeam/ScreenIndicator;->mColor:I

    return v0
.end method

.method private initIndicator(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 52
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v1, :pswitch_data_0

    .line 64
    :goto_0
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0, v1}, Lorg/zeam/ScreenIndicator;->addView(Landroid/view/View;)V

    .line 65
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lorg/zeam/ScreenIndicator;->setEnabled(Z)V

    .line 66
    return-void

    .line 54
    :pswitch_0
    new-instance v1, Lorg/zeam/DotsIndicator;

    invoke-direct {v1, p1}, Lorg/zeam/DotsIndicator;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    .line 55
    iget-object v0, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v0, Lorg/zeam/DotsIndicator;

    .line 56
    .local v0, dotsIndicator:Lorg/zeam/DotsIndicator;
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    invoke-virtual {v0, v1}, Lorg/zeam/DotsIndicator;->setCurrentItem(I)V

    .line 57
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    invoke-virtual {v0, v1}, Lorg/zeam/DotsIndicator;->setTotalItems(I)V

    goto :goto_0

    .line 61
    .end local v0           #dotsIndicator:Lorg/zeam/DotsIndicator;
    :pswitch_1
    new-instance v1, Lorg/zeam/ScreenIndicator$SliderIndicator;

    invoke-direct {v1, p0, p1}, Lorg/zeam/ScreenIndicator$SliderIndicator;-><init>(Lorg/zeam/ScreenIndicator;Landroid/content/Context;)V

    iput-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    goto :goto_0

    .line 52
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method


# virtual methods
.method public fullIndicate(I)V
    .locals 5
    .parameter "position"

    .prologue
    .line 152
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 153
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v1, :pswitch_data_0

    .line 161
    :goto_0
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 162
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    if-lez v1, :cond_0

    .line 163
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    iget v3, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    int-to-long v3, v3

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 165
    :cond_0
    iput p1, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    .line 166
    return-void

    .line 155
    :pswitch_0
    iget-object v0, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v0, Lorg/zeam/DotsIndicator;

    .line 156
    .local v0, dotsIndicator:Lorg/zeam/DotsIndicator;
    invoke-virtual {v0, p1}, Lorg/zeam/DotsIndicator;->setCurrentItem(I)V

    goto :goto_0

    .line 153
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public hide()V
    .locals 1

    .prologue
    .line 260
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 261
    return-void
.end method

.method public indicate(F)V
    .locals 8
    .parameter "percent"

    .prologue
    .line 129
    const/4 v4, 0x0

    invoke-virtual {p0, v4}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 130
    iget v4, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    int-to-float v4, v4

    mul-float/2addr v4, p1

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v2

    .line 131
    .local v2, position:I
    iget v4, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v4, :pswitch_data_0

    .line 143
    :goto_0
    iget-object v4, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    iget-object v5, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    invoke-virtual {v4, v5}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 144
    iget v4, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    if-lez v4, :cond_0

    .line 145
    iget-object v4, p0, Lorg/zeam/ScreenIndicator;->mHandler:Landroid/os/Handler;

    iget-object v5, p0, Lorg/zeam/ScreenIndicator;->mAutoHide:Ljava/lang/Runnable;

    iget v6, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    int-to-long v6, v6

    invoke-virtual {v4, v5, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 147
    :cond_0
    iput v2, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    .line 148
    return-void

    .line 133
    :pswitch_0
    iget-object v0, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v0, Lorg/zeam/DotsIndicator;

    .line 134
    .local v0, dotsIndicator:Lorg/zeam/DotsIndicator;
    invoke-virtual {v0, v2}, Lorg/zeam/DotsIndicator;->setCurrentItem(I)V

    goto :goto_0

    .line 138
    .end local v0           #dotsIndicator:Lorg/zeam/DotsIndicator;
    :pswitch_1
    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v4

    int-to-float v4, v4

    mul-float/2addr v4, p1

    float-to-int v4, v4

    iget-object v5, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getLeft()I

    move-result v5

    sub-int v1, v4, v5

    .line 139
    .local v1, offset:I
    iget-object v3, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v3, Lorg/zeam/ScreenIndicator$SliderIndicator;

    .line 140
    .local v3, sliderIndicator:Lorg/zeam/ScreenIndicator$SliderIndicator;
    invoke-virtual {v3, v1}, Lorg/zeam/ScreenIndicator$SliderIndicator;->setOffset(I)V

    .line 141
    iget-object v4, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->invalidate()V

    goto :goto_0

    .line 131
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public onAnimationEnd(Landroid/view/animation/Animation;)V
    .locals 1
    .parameter "animation"

    .prologue
    .line 250
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 251
    return-void
.end method

.method public onAnimationRepeat(Landroid/view/animation/Animation;)V
    .locals 0
    .parameter "animation"

    .prologue
    .line 254
    return-void
.end method

.method public onAnimationStart(Landroid/view/animation/Animation;)V
    .locals 0
    .parameter "animation"

    .prologue
    .line 257
    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 7
    .parameter "changed"
    .parameter "left"
    .parameter "top"
    .parameter "right"
    .parameter "bottom"

    .prologue
    const/16 v6, 0x14

    const/4 v5, 0x4

    const/4 v4, -0x1

    const/4 v2, -0x2

    const/4 v3, 0x0

    .line 106
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v1, :pswitch_data_0

    .line 125
    :goto_0
    return-void

    .line 108
    :pswitch_0
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v4, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 111
    .local v0, params:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2, v6}, Landroid/view/View;->measure(II)V

    .line 112
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 113
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v2

    invoke-virtual {v1, v3, v3, v2, v6}, Landroid/view/View;->layout(IIII)V

    goto :goto_0

    .line 117
    .end local v0           #params:Landroid/widget/LinearLayout$LayoutParams;
    :pswitch_1
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v4, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 120
    .restart local v0       #params:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2, v5}, Landroid/view/View;->measure(II)V

    .line 121
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 122
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v2

    invoke-virtual {v1, v3, v3, v2, v5}, Landroid/view/View;->layout(IIII)V

    goto :goto_0

    .line 106
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method protected onMeasure(II)V
    .locals 4
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    .line 87
    const/4 v0, 0x4

    .line 88
    .local v0, realHeight:I
    iget v2, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v2, :pswitch_data_0

    .line 98
    :goto_0
    const/high16 v2, 0x4000

    invoke-static {v0, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    .line 99
    .local v1, realHeightMeasurespec:I
    invoke-super {p0, p1, v1}, Landroid/view/ViewGroup;->onMeasure(II)V

    .line 100
    return-void

    .line 90
    .end local v1           #realHeightMeasurespec:I
    :pswitch_0
    const/16 v0, 0x14

    .line 91
    iget-object v2, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v3

    invoke-virtual {v2, v3, v0}, Landroid/view/View;->measure(II)V

    goto :goto_0

    .line 95
    :pswitch_1
    iget-object v2, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getWidth()I

    move-result v3

    invoke-virtual {v2, v3, v0}, Landroid/view/View;->measure(II)V

    goto :goto_0

    .line 88
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public setAutoHide(Z)V
    .locals 1
    .parameter "autohide"

    .prologue
    .line 189
    if-eqz p1, :cond_0

    .line 190
    const/16 v0, 0x12c

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    .line 191
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 196
    :goto_0
    return-void

    .line 193
    :cond_0
    const/4 v0, -0x1

    iput v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    .line 194
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    goto :goto_0
.end method

.method public setItems(I)V
    .locals 3
    .parameter "items"

    .prologue
    .line 70
    iput p1, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    .line 71
    iget v2, p0, Lorg/zeam/ScreenIndicator;->mType:I

    packed-switch v2, :pswitch_data_0

    .line 82
    :goto_0
    return-void

    .line 73
    :pswitch_0
    iget-object v0, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v0, Lorg/zeam/DotsIndicator;

    .line 74
    .local v0, dotsIndicator:Lorg/zeam/DotsIndicator;
    iget v2, p0, Lorg/zeam/ScreenIndicator;->mCurrent:I

    invoke-virtual {v0, v2}, Lorg/zeam/DotsIndicator;->setCurrentItem(I)V

    .line 75
    iget v2, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    invoke-virtual {v0, v2}, Lorg/zeam/DotsIndicator;->setTotalItems(I)V

    goto :goto_0

    .line 79
    .end local v0           #dotsIndicator:Lorg/zeam/DotsIndicator;
    :pswitch_1
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    check-cast v1, Lorg/zeam/ScreenIndicator$SliderIndicator;

    .line 80
    .local v1, sliderIndicator:Lorg/zeam/ScreenIndicator$SliderIndicator;
    iget v2, p0, Lorg/zeam/ScreenIndicator;->mItems:I

    invoke-virtual {v1, v2}, Lorg/zeam/ScreenIndicator$SliderIndicator;->setTotalItems(I)V

    goto :goto_0

    .line 71
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method setType(I)V
    .locals 2
    .parameter "type"

    .prologue
    .line 170
    iget v1, p0, Lorg/zeam/ScreenIndicator;->mType:I

    if-eq p1, v1, :cond_0

    .line 173
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    .line 175
    .local v0, layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    const/4 v1, 0x3

    if-ne p1, v1, :cond_1

    .line 176
    const/16 v1, 0x50

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 180
    :goto_0
    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 181
    iput p1, p0, Lorg/zeam/ScreenIndicator;->mType:I

    .line 182
    iget-object v1, p0, Lorg/zeam/ScreenIndicator;->mIndicator:Landroid/view/View;

    invoke-virtual {p0, v1}, Lorg/zeam/ScreenIndicator;->removeView(Landroid/view/View;)V

    .line 183
    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {p0, v1}, Lorg/zeam/ScreenIndicator;->initIndicator(Landroid/content/Context;)V

    .line 185
    .end local v0           #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    :cond_0
    return-void

    .line 178
    .restart local v0       #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    :cond_1
    const/16 v1, 0x30

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    goto :goto_0
.end method

.method public show()V
    .locals 1

    .prologue
    .line 265
    iget v0, p0, Lorg/zeam/ScreenIndicator;->mVisibleTime:I

    if-gez v0, :cond_0

    .line 266
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lorg/zeam/ScreenIndicator;->setVisibility(I)V

    .line 268
    :cond_0
    return-void
.end method
